package com.zero.common.domain;


import java.io.Serializable;

/*
*   result的另一种写法
*       传统响应结果类 result
* */
public class AnotherResult<T> implements Serializable {

    public static final long serialVersionUID = 1L;

    private int code;

    private String msg;

    private T data;

    public AnotherResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public AnotherResult(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

}
